﻿using System;
using ManoMachine.Assembler.Parsers;

namespace ManoMachine.Assembler.Mnemonics.Descriptors
{
    class RRIDescriptor : InstructionDescriptor
    {
        public RRIDescriptor(string name, ushort hexCode)
            : base(name, hexCode)
        {
        }

        public override bool IsValidInstruction(AssemblyLine assemblyLine)
        {
            return (assemblyLine.InstructionParts.Length == 1);
        }
    }
}